package vip.liux.contracts.models.customer;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import vip.liux.domain.entities.auditing.CreationAuditedEntity;

@Getter
@Setter
@Entity
@Table(name = "customer_token")
public class CustomerToken extends CreationAuditedEntity<Long> {
    @NotNull
    @Column(name = "uid", nullable = false)
    private String uid;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 登录提供者
     */
    @Column(name = "login_provider")
    private String loginProvider;

    /**
     * 值
     */
    @Column(name = "value")
    private String value;
}